﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"  Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
<% Html.RenderAction("MenuLeft", "Catelogy"); %>
<% Html.RenderAction("ListAttCatelogy", "AttachCatelogy"); %>
        <b>TRANG MAC DINH</b>
    </p>
    <ul>
    <% foreach (var item in Model) { %>
           <li>
            <%= item.Catelogy.catelogyName %>
               <ul>
            <%int i = 0; %>
            <% foreach (var press in item.ListPress)
               {
                   if (i==3)
                   {
                       break;
                   }
                   else
                   {%>
                     <li> <%= press.title %></li>
                     <%= Html.ActionLink("Chi tiết", "BrowsePress", "Press", new { id = press.pressId },null)%> 
                   <% 
                   }%>
              
               <%  i++;  
               } %>
               </ul>
           </li>     
    <% } %>
    </ul>


<% Html.RenderAction("contact", "Contact"); %>
<% Html.RenderAction("counting", "Admin"); %>
</asp:Content>

